﻿#pragma execution_character_set("utf-8")

#include "page_realtime.h"
#include "ui_page_realtime.h"
#include "win_main/win_main.h"


realtimePage::realtimePage(QWidget *parent) : QWidget(parent), ui(new Ui::realtimePage)
{
    ui->setupUi(this);
    this->initForm();
}

realtimePage::~realtimePage()
{
    delete ui;
}

void realtimePage::initForm()
{
    connect(ui->realvideos, SIGNAL(fullScreen(bool)), g_mainWindow, SLOT(on_fullScreen(bool)));
}

void realtimePage::hideRight(bool hide)
{
    ui->real_app->setVisible(hide);
}

void realtimePage::fullScreen(bool full)
{
    if(full)
    {
        ui->real_app->setVisible(false);
    }
    else
    {
        ui->real_app->setVisible(true);
    }
}
